package com.api.shopapi.service.impl;

import com.api.shopapi.entity.ElderlyCheckinAssessItem;
import com.api.shopapi.mapper.ElderlyCheckinAssessItemMapper;
import com.api.shopapi.service.ElderlyCheckinAssessItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author maochuan
 */
@Service("ElderlyCheckinAssessItemServiceImplOne")
public class ElderlyCheckinAssessItemServiceImpl implements ElderlyCheckinAssessItemService {
    @Autowired
    private ElderlyCheckinAssessItemMapper elderlyCheckinAssessItemMapper;

    @Override
    public int insert(ElderlyCheckinAssessItem elderlyCheckinAssessItem) {
        return elderlyCheckinAssessItemMapper.insert(elderlyCheckinAssessItem);
    }

    @Override
    public int deleteByElderlyCheckinAssessItemCode(String elderlyCheckinAssessItemCode) {
        return elderlyCheckinAssessItemMapper.deleteByElderlyCheckinAssessItemCode(elderlyCheckinAssessItemCode);
    }

    @Override
    public int updateByElderlyCheckinAssessItemCode(ElderlyCheckinAssessItem elderlyCheckinAssessItem) {
        return elderlyCheckinAssessItemMapper.updateByElderlyCheckinAssessItemCode(elderlyCheckinAssessItem);
    }

    @Override
    public ElderlyCheckinAssessItem getByElderlyCheckinAssessItemCode(String elderlyCheckinAssessItemCode) {
        return elderlyCheckinAssessItemMapper.getByElderlyCheckinAssessItemCode(elderlyCheckinAssessItemCode);
    }

    @Override
    public int deleteByElderlyCheckinAssessCode(String elderlyCheckinAssessCode) {
        return elderlyCheckinAssessItemMapper.deleteByElderlyCheckinAssessCode(elderlyCheckinAssessCode);
    }

    @Override
    public List<ElderlyCheckinAssessItem> getByElderlyCheckinAssessCode(String elderlyCheckinAssessCode) {
        return elderlyCheckinAssessItemMapper.getByElderlyCheckinAssessCode(elderlyCheckinAssessCode);
    }

    @Override
    public List<ElderlyCheckinAssessItem> getByElderlyCheckinAssessCodeGroupByCheckinAssessClassCode(String elderlyCheckinAssessCode) {
        return elderlyCheckinAssessItemMapper.getByElderlyCheckinAssessCodeGroupByCheckinAssessClassCode(elderlyCheckinAssessCode);
    }

    @Override
    public List<ElderlyCheckinAssessItem> getByElderlyCheckinAssessCodeAndCheckinAssessClassCode(String elderlyCheckinAssessCode, String checkinAssessClassCode) {
        return elderlyCheckinAssessItemMapper.getByElderlyCheckinAssessCodeAndCheckinAssessClassCode(elderlyCheckinAssessCode,checkinAssessClassCode);
    }

}
